/**
 * jims
 */
package com.jims.master.modules.operation.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.beans.Transient;

/**
 * 手术项目Entity
 * @author ZhuQ
 * @version 2017-04-06
 */
public class OperationDict extends DataEntity<OperationDict> {
	
	private static final long serialVersionUID = 1L;
	private String operationCode;		// 手术操作代码
	private String operationName;		// 手术操作名称
    private String operCode;		// 手术代码
    private String operPrice;       //手术价格

    public String getOperPrice() {
        return operPrice;
    }

    public void setOperPrice(String operPrice) {
        this.operPrice = operPrice;
    }

    public String getOperName() {
        return operName;
    }

    public void setOperName(String operName) {
        this.operName = operName;
    }

    public String getOperCode() {
        return operCode;
    }

    public void setOperCode(String operCode) {
        this.operCode = operCode;
    }

    private String operName;		// 手术名称
	private String operationScale;		// 手术等级
	private String inputCode;		// 输入码
	private String clinicId;		// 诊疗项目ID
	private String unit;		// 单位
	private String operationFlag;		// 手术状态
    private Double price;       //价格
    private Double preferPrice; //优惠价
//扩展
	private String priceId; //价表ID
	@Transient
	public String getPriceId() {
		return priceId;
	}
	@Transient
	public void setPriceId(String priceId) {
		this.priceId = priceId;
	}

	@Transient
    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Transient
    public Double getPreferPrice() {
        return preferPrice;
    }

    public void setPreferPrice(Double preferPrice) {
        this.preferPrice = preferPrice;
    }

    public OperationDict() {
		super();
	}

	public OperationDict(String id){
		super(id);
	}

	@Length(min=0, max=20, message="手术操作代码长度必须介于 0 和 20 之间")
	public String getOperationCode() {
		return operationCode;
	}

	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}
	
	@Length(min=1, max=50, message="手术操作名称长度必须介于 1 和 50 之间")
	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}
	
	@Length(min=0, max=1, message="手术等级长度必须介于 0 和 1 之间")
	public String getOperationScale() {
		return operationScale;
	}

	public void setOperationScale(String operationScale) {
		this.operationScale = operationScale;
	}
	
	@Length(min=0, max=8, message="输入码长度必须介于 0 和 8 之间")
	public String getInputCode() {
		return inputCode;
	}

	public void setInputCode(String inputCode) {
		this.inputCode = inputCode;
	}
	
	@Length(min=1, max=64, message="诊疗项目ID长度必须介于 1 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@Length(min=0, max=2, message="单位长度必须介于 0 和 2 之间")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	@Length(min=0, max=1, message="手术状态长度必须介于 0 和 1 之间")
	public String getOperationFlag() {
		return operationFlag;
	}

	public void setOperationFlag(String operationFlag) {
		this.operationFlag = operationFlag;
	}

}